图像的投影变换实例
hom_vector_to _proj_hom_mat2d (XCoordCorners,
YCoordCorners, [1, 1, 1. 1], [70, 270, 270, 70], [100,
数据,SymbolXLDs是成功解码后的符号生成的
XLD轮廓
1
00, 300, 300], [1, 1, 1, 1], ' normalized_dlt',
HomMat2D)
在待处理的图像上应用投影变换矩阵,并将结果
find_data_code_2d (Image_rectified, SymbolXLDs,
DataCodeHandle, [ ],[ ],ResultHandles,
DecodedDataStrings)
*
输出到Image_rectified中
*显示
projective_trans_image(Image_slanted,lmage_rectified,
HomMat2D, 'bilinear','false', 'false')
dev_display (Image_slanted)
dev_display (Image_rectified)
dev display (SymbolXLDs)
*为上述2D数据代码创建模型,DataCodeHandle为
数据代码模型
*在图形窗口编辑并显示文本
disp_message (WindowHandle, 'Decoding successful' ,
'window' , 12, 12, 'black' , 'true' )
*设置当前窗口的字体属性
create_data_code_2d_model ('Data Matrix ECC 200’,
[
],[ ],DataCodeHandle)
*检测输入图像中的2D数据模型代码,并读取编码